<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>转借</title>
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/form.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/jquery-ui.css" />
		<style>
			.write_area table tr td {
    			 width: 12.5%;
    		}
		</style>
	</head>
	<body>
		<!-- 蓝色背景区域 -->
		<div class="wrap">
			<!-- 白色可用区域 -->
			<div class="canuse">
				<!------ 位置 ------>
	            <p class="contentText local"><span>位置： 物料需求管理 > 物料转借单申请 </span></p>
	            
			    	<div class="article_list">
			            <!------- 内容 ------->
			            <div class="content content1" style="width: 99.6%;margin: 0px auto;">
			            	<!-- 用户列表内容区 -->
			                <div class="con con_01">
			                    <!-- 表单信息填写区 -->
			                    <h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>物料转借单</span></h4>
			                    <div class="write_area">
			                        <form id="addFrom" action="" method="post">
			                            <table class="contentText" border="1" cellspacing="0" cellpadding="0" width="99%" style="margin-bottom: 10px;">
			                                <tbody>
			                                    <tr>
			                                        <th width="12.5%">需求单号：</th>
			                                        <td width="12.5%">BL1536033451730</td>
			                                        <th width="12.5%">计划号：</th>
			                                        <td width="12.5%">JH201112</td>
			                                        <th width="12.5%">产品代号：</th>
			                                        <td width="12.5%">代号63</td>
			                                        <th width="12.5%">零部件代号：</th>
													<td width="12.5%">SDFSDF123</td>
			                                    </tr>
			                                    <tr>
			                                        <th>创建人：</th>
			                                        <td>zhaopx</td>
			                                        <th>创建日期：</th>
			                                        <td>2020-03-11</td>
			                                        <th>需求类型：</th>
			                                        <td>齐套补料</td>
			                                        <th>执行状态：</th>
			                                        <td>补料中</td>
			                                    </tr>
			                                    <tr>
			                                      
			                                        <th>备注：</th>
			                                        <td></td>
			                                    </tr>
												<tr>
													
												</tr>
			                                </tbody>
			                            </table>
			                        </form>
			                    </div>
			                </div>
							<!-- 列表展示区 -->
							<div class="table_border">
				                <div class="show_list">
				                	<div class="title_operate">
				                    	<h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>物料转借单详情</span></h4>
				                    	<div class="operate_area" id="addOperate">
				                            
				                        </div>
				                	</div>
				                	<div class="list_area">
				                        <!-- 信息列表区 -->
				                        <div class="info_area">
				                            <table class="tablelist" border="1" cellspacing="0" cellpadding="0">
				                                <tbody>
				                                    <tr class="menuText list_head">
				                                        <th class="">序号</th>
				                                        <th class="">物料编码</th>
				                                        <th class="">物料名称</th>
				                                        <th class="">物料类型</th>
				                                        <th class="">物料型号</th>
				                                         <th class="">计量单位</th>
				                                        <th class="">需求数量</th>
				                                         <th class="">已到数量</th>
				                                       	 <th class="">转借计划</th>
				                                       	  <th class="">转借数量</th>
				                                    </tr>
				                                </tbody>
				                                <tbody class="tablelist" id="addTr">
				                                    <tr class="listTableText list_list">
				                                        <td>1</td>
				                                        <td>21042</td>
				                                        <td>电阻</td>
				                                        <td>SA001</td>
				                                        <td>MODEL</td>
				                                         <td>个</td>
				                                        <td>100</td>
				                                        <td>10</td>
				                                        <td><select><option>计划01</option><option>计划02</option></select></td>
				                                        <td><input value=""></td>
				                                    </tr>
				                                </tbody>
				
				                            </table>
				                            <!-- 确定、返回按钮区 -->
					                        <div align="center" class="btn_submit">
					                            <a href="javascript:history.go(-1)" class="bgd_blue_two img_hand contentText">确定</a>
					                            <a href="javascript:history.go(-1)" class="bgd_white_two img_hand"> 返回 </a>
					                        </div>
				                        </div>
				                       
				                    </div>
				                </div>
							</div>
			            </div>
			        </div>
			        
			    </div>
			</div>
			
			<!-- 版尾  -->
			<div class="ending">
				Copyright© 2019-2020 磐基技术有限公司
			</div>
		</div>
	</body>
	<script src="../../js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/3rd/jquery-ui.js" type="text/javascript"></script>
	<script type="text/javascript">
		var h = document.documentElement.clientHeight;
		$(".wrap").css("height", h);
		
		// 获取每行 td 的兄弟节点
		$(".info_area td").hover(   
			function () {      
				$(this).parent().children().addClass("td_hover");
			},    
			function () {      
				$(this).parent().children().removeClass("td_hover");  
			}
		);
		
		
		// 日期控件
		$(function(){
	        $("#dateControl").datepicker({
	        	dateFormat : 'yy-mm-dd',
	            monthNamesShort:["January","February","March","April","May","June", "July","August","September","October","November","December"],
	 		 	changeYear:true,
	 		 	changeMonth:true,
	 		 	showOn:"button",
	 		 	buttonImage:"../../img/button/calendar.png",
	 		 	buttonImageOnly:false
	        });
	     });
		
		//-------- 增加明细 ---------
	    function addDetail() {
	        var trInt = $("#addTr").find("tr").length;
			var no = trInt + 1;// 序号
	        var dom = "<tr class='contentText list_list'><td><input type='checkbox' class='input_checkBox' name='' id='' value='' /></td>";
	        dom += "<td>" + no + "</td>";
	        dom += "<td><input type='text' name='' value=''></td>";
	        dom += "<td><input type='text' name='' value=''></td>";
	        dom += "<td><input type='text' name='' value=''></td>";
	        dom += "<td><input type='text' name='' value=''></td>";
	        dom += "<td><input type='text' name='' value=''></td>";
	        dom += "<td><input type='text' name='' value=''></td></tr>";
	        
	        $("#addTr").append(dom);
	    }
		
		//-------- 删除明细 ---------
	    function deleteDetail() {
	        var checks = $("input[type='checkbox']:checked");
	        if (checks.length == 0) {
	            $("#addTr").find("tr:last").remove();
	        } else {
	            $.each(checks, function(item, obj) {
	                $(obj).parent().parent().remove();
	            });
	        }
	    }
	</script>
</html>
